<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\HtmlPurifier;
?>
<li>
  <a class="media" href="<?=Url::toRoute(['site/msgdetail','msgid'=>$model->id])?>">
    <span class="media-left media-icon">
      <span class="fa-stack fa-lg">
        <i class="fa fa-circle fa-stack-2x text-danger">
        </i>
        <i class="fa fa-envelope fa-stack-1x fa-inverse">
        </i>
      </span>
    </span>
    <div class="media-body">
      <span class="block"><?=Html::encode($model->sender0->name.'  '.$model->title)?></span>
      <span class="text-muted block"><?=Yii::$app->formatter->asRelativeTime($model->dt, time())?></span>
    </div>
  </a>
</li>
